﻿
function LoginCtrl($scope,$browser,$http ){ 
	$scope.newverifycode = function(){ 
		$scope.random = (new Date()).getTime().toString();
	};
	
	function myalert(msg){
		deleteCookie("error");
		$scope.showHid=true;
		$scope.alertCon=msg;
	}
	var error = $browser.cookies()['error'];  
	if (error && error != "") {
        switch(error){
            case "login0000": myalert("未填写验证码"); break;
            case "login0001": myalert("验证码不正确，请重试"); break;
            case "login0004": myalert("账号或者密码不正确，请重试"); break;
            default: myalert("填写的验证码不正确，请重试"); break;
        }
		
    };
}

function showCtrl($scope){
	
	}